let express = require('express');
let app = express();


function logger(req, res, next) {
    console.log(new Date(), req.url);
    next();
}

app.use(logger);

app.get('/', (req, res) => {
    res.send("Home");
});

// app.get('/hello/', (req, res) =>{
//     res.send("hello page")
// });
//
// app.get('/bye/', (req, res)=>{
//     res.send("bye home");
// })

let server = app.listen(8080, () => {
    console.log("Listening on port 8000...");
});
